package com.yc.bean;

import lombok.Data;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

/**
 * @author zwei
 * @create 2024-08-07 15:35
 */
@Data
@ManagedResource(objectName = "b:type=Oprecord")
@Component
public class Oprecord {
    private Integer id;
    private Integer accountid;
    private double opmoney;
    private String optime;
    private OpType optype;  //枚举类型
    private Integer transferid;

    public Oprecord() {
    }

    public Oprecord(Integer accountid, double opmoney, OpType optype, Integer transferid) {
        this.accountid = accountid;
        this.opmoney = opmoney;
        this.optype = optype;
        this.transferid = transferid;
    }

}
